The phrase "to harden the heart" means to become emotionally cold and unsympathetic, to stop feeling compassion or empathy towards others.